{extend name="common@base" /}
{block name="content"}
<style>
  select, input {
    margin: 0 10px;
  }
</style>
<section class="content">
  <div class="row">
    <div class="col-xs-12">
      <form action="" method="post" class="form">
        <div class="box box-primary">
          <div class="box-header with-border">
            <div class="box-title">以下数据已被管理员设定</div>
          </div>
          <div class="box-body">
            <div class="form-inline">
              {foreach $qType as $type=>$qt}
              <label for="">{$qt}{$qConfig[$type]['num']}题，</label>
              <label for="">每题{$qConfig[$type]['score']}分；</label>
              {/foreach}
              <label for="">考试时长{$config['exam_duration']}分钟； </label>
              <label for="">通过分数{$config['pass_score']}分。 </label>
            </div>
            <div class="form-inline">

            </div>
          </div>
        </div>
        <div class="box box-primary">
          <div class="box-header with-border">
            <div class="box-title">请设置考试基本信息</div>
          </div>
          <div class="box-body">
            <div class="form-inline">
              <label for="">考试班级
                {:form_dropdown('form[class_id]',$classes,$row.class_id,'class="form-control"')}</label>
            </div>
            <div class="form-inline">
              <label for="">监考老师
                {:form_dropdown('form[teacher_uid]',$teachers,$row.teacher_uid,'class="form-control"')}</label>
            </div>
          </div>
        </div>
        <div class="box box-deafult">
          <div class="box-footer">
            <button class="btn btn-primary js-ajax-submit" type="submit">保存</button>
            <a href="javascript:history.back()" class="btn btn-default">返回</a>
          </div>
        </div>

      </form>
    </div>
  </div>
</section>
{/block}
{block name="page_script"}
<script>
  require(["layer_config", "ajaxForm"], function (layer) {

  });

</script>
{/block}





